package com.yi.gostockgo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 自选股
 * </p>
 *
 * @author liandyao
 * @since 2020-04-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class GoSelf extends Model<GoSelf> {

    private static final long serialVersionUID=1L;

    /**
     * 自选股票主键
     */
    @TableId(value = "self_id", type = IdType.ASSIGN_ID)
    private String selfId;

    /**
     * 账号ID
     */
    private String accountId;

    /**
     * 股票代码
     */
    private String stockCode;

    /**
     * 股票名称
     */
    private String stockName;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建人
     */
    private String creater;

    /**
     * 修改时间
     */
    private String updateTime;

    /**
     * 是否有效
     */
    private Integer isva;


    @Override
    protected Serializable pkVal() {
        return this.selfId;
    }

}
